package com.dianping.cat.consumer.state.model.transform;

import com.dianping.cat.consumer.state.model.IVisitor;
import com.dianping.cat.consumer.state.model.entity.Detail;
import com.dianping.cat.consumer.state.model.entity.Machine;
import com.dianping.cat.consumer.state.model.entity.Message;
import com.dianping.cat.consumer.state.model.entity.ProcessDomain;
import com.dianping.cat.consumer.state.model.entity.StateReport;


public abstract class BaseVisitor
  implements IVisitor
{
  public void visitDetail(Detail detail) {}

  public void visitMachine(Machine machine) {
/* 17 */     for (ProcessDomain processDomain : machine.getProcessDomains().values()) {
/* 18 */       visitProcessDomain(processDomain);
    }

/* 21 */     for (Message message : machine.getMessages().values()) {
/* 22 */       visitMessage(message);
    }
  }



  public void visitMessage(Message message) {}


  public void visitProcessDomain(ProcessDomain processDomain) {
/* 32 */     for (Detail detail : processDomain.getDetails().values()) {
/* 33 */       visitDetail(detail);
    }
  }


  public void visitStateReport(StateReport stateReport) {
/* 39 */     for (Machine machine : stateReport.getMachines().values())
/* 40 */       visitMachine(machine); 
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/state/model/transform/BaseVisitor.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */